package com.example.movie.ui.home.tabs.model

import android.widget.ImageView
import com.qmuiteam.qmui.widget.section.QMUISection


class SectionItem(val movieName: String, val actors: String, val movieImageView: ImageView) :
    QMUISection.Model<SectionItem> {

    override fun cloneForDiff(): SectionItem {
        return SectionItem(movieName, actors, movieImageView)
    }

    override fun isSameItem(other: SectionItem): Boolean {
        return movieName == other.movieName && actors == other.actors && movieImageView == other.movieImageView
    }

    override fun isSameContent(other: SectionItem): Boolean {
        return true
    }

}